package com.xmu.prcs.dao;

import java.util.List;

import com.xmu.prcs.entity.Subject;

/**
 * 
 * @author frequent
 * @version 1.0,2010-3-20
 *
 */
public interface SubjectDao extends GenericDao<Subject>{

	public final String ID_SUBJECT = "idSubject";
	public final String SUBJECT_NAME = "subjectName";
	public final String SUBJECT_INFO = "subjectInfo";
	public final String UPDATE_TIME = "updateTime";
	
	/**
	 * 通过某个属性值得到专题
	 * @param propety
	 * @param param
	 * @return
	 */
	public List<Subject> getSubjectsByPropety(String propety, Object param);
	
	/**
	 * 得到主题结果数
	 * @return
	 */
	public int countSubject();
	
	/**
	 * 按分页得到专题列表
	 * @param begin
	 * @param size
	 * @return
	 */
	public List<Subject> getSubject4Page(int begin, int size);
}
